<template>
  <AplidCharts type="pie" :option="option"></AplidCharts>
</template>

<script setup lang="ts">
import { ref, reactive, toRefs, onMounted } from "vue";
import * as echarts from "echarts/core";
import AplidCharts from "@/components/AplidCharts/index.vue";
let option = {
  title: [
    {
      text: "",
      x: "center",
      top: "55%",
      textStyle: {
        color: "#FFFFFF",
        fontSize: 16,
        fontWeight: "100",
      },
    },
    {
      text: "98.64%",
      x: "center",
      top: "40%",
      textStyle: {
        fontSize: "28",
        color: "#FFFFFF",
        foontWeight: "400",
      },
    },
  ],
  backgroundColor: "",
  polar: {
    radius: ["60%", "72%"],
    center: ["50%", "50%"],
  },
  angleAxis: {
    max: 100,
    show: false,
  },
  radiusAxis: {
    type: "category",
    show: true,
    axisLabel: {
      show: false,
    },
    axisLine: {
      show: false,
    },
    axisTick: {
      show: false,
    },
  },
  series: [
    {
      name: "",
      type: "bar",
      roundCap: true,
      barWidth: 90,
      showBackground: true,
      backgroundStyle: {
        color: "rgba(66, 66, 66, .3)",
      },
      data: [98.64],
      coordinateSystem: "polar",

      itemStyle: {
        normal: {
            color: "#19FCDE",
            shadowBlur: 20,
            shadowColor: "#5269EE"
        },
      },
    },
    
    {
      name: "",
      type: "pie",
      startAngle: 80,
      radius: ["80%"],
      hoverAnimation: false,
      center: ["50%", "50%"],
      itemStyle: {
        color: "rgba(66, 66, 66, .1)",
        borderWidth: 1,
        borderColor: "#4D5A64",
        
      },
      data: [100],
    },
  ],
};
</script>
<style scoped lang="scss"></style>
